﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchDirtyHeaderControl.ascx.vb"
    Inherits="WebForm_SearchControl_SearchDirtyHeaderControl" %>
<asp:Panel ID="panel1" runat="server" BackColor="white" BorderWidth="1" SkinID="DragPanel"
    Width="500">
    <br />
    <div align="center">
        <asp:Label ID="lblForm" runat="server" SkinID="title" Text="<%$ Resources:Title %>"></asp:Label>
    </div>
    <br />
    <table align="center">
        <tr>
            <td>
                <My:MyGridView ID="GV" runat="server" SkinID="pager" DataKeyNames="FindDirtyHeaderID" meta:resourcekey="gv"
                    AllowPaging="True" AllowHoverSelect="True" AllowHoverEffect="True" AllowSorting="True"
                     MySortDirection="Ascending" DataSourceID="ObjectDataSource1">
                    <Columns>
                        <asp:BoundField DataField="FullLocation" HeaderText="<%$ Resources:FullLocation %>" />
                        <asp:BoundField DataField="RegionType" HeaderText="<%$ Resources:RegionType %>" />
                        <asp:BoundField DataField="ReportDate" DataFormatString="{0:d}" HeaderText="<%$ Resources:ReportDate %>" />
                        <asp:BoundField DataField="CreateBy" HeaderText="<%$ Resources:CreateBy %>" />
                    </Columns>
                </My:MyGridView>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
                    SelectMethod="BLL_Select" TypeName="BLL_SearchDirtyHeaderControl">
                    <SelectParameters>
                        <asp:Parameter Name="ShowAll" Type="Boolean" />
                    </SelectParameters>    
                </asp:ObjectDataSource>
                    
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnOK" runat="server" Text="<%$ Resources:OK %>" />
                <asp:Button ID="btnCancel" runat="server" Text="<%$ Resources:Cancel %>" />
                <asp:Button ID="btnShowAll" runat="server" meta:resourcekey="btnShowAll" />
            </td>
        </tr>
    </table>
    <br />
</asp:Panel>
<asp:Button ID="btnDummy" runat="server" Style="display: none" SkinID="null" />
<ajaxToolkit:ModalPopupExtender ID="mpSearch" runat="server" TargetControlID="btnDummy"
    PopupControlID="panel1" OkControlID="btnCancel" PopupDragHandleControlID="panel1" />
